package com.rain.lo.dao;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BaseDao<T> {

    List<T> list(@Param("offset") Long offset,@Param("limit") Long limit);

    Long count();

    void update(T entity);

    void save(T entity);

    void delete(Integer id);
}
